import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询列表
export function listWithPage(query) {
    return request({
        url: '/system/chuKuDan/listWithPage',
        method: 'get',
        params: query
    })
}

// 查询详细
export function getDetail(id) {
    return request({
        url: '/system/chuKuDan/' + parseStrEmpty(id),
        method: 'get'
    })
}

// 新增
export function add(data) {
    return request({
        url: '/system/chuKuDan',
        method: 'post',
        data: data
    })
}

// 修改
export function update(data) {
    return request({
        url: '/system/chuKuDan',
        method: 'put',
        data: data
    })
}

// 审核
export function audit(id, status) {
    return request({
        url: '/system/chuKuDan/audit',
        method: 'put',
        data: {id, status}
    })
}

/** 列表导出 **/
export const exportListUrl = '/system/chuKuDan/export';